using System;
using Newtonsoft.Json;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 子行
    /// </summary>
    public class BuyerScarletInformationFormDetail : BaseLine
    {
        /*/// <summary>
        /// 主键
        /// </summary>
        [JsonIgnore]
        [SugarColumn(IsPrimaryKey = true)]
        public new Guid Id { get; set; }*/

        /// <summary>
        /// 红冲原因
        /// </summary>
        public string CreditMemoReason { get; set; }

        /// <summary>
        /// 发票号码
        /// </summary>
        public string InvoiceNumber { get; set; }

        /// <summary>
        /// 发票代码
        /// </summary>
        public string InvoiceCode { get; set; }

        /// <summary>
        /// 购方名称
        /// </summary>
        public string BuyerName { get; set; }

        /// <summary>
        /// 原发票日期
        /// </summary>
        public DateTime? InvoiceDate { get; set; }

        /// <summary>
        /// 原系统发票号
        /// </summary>
        public string SystemInvoiceNumber { get; set; }

        /// <summary>
        /// 原发票金额(含税)
        /// </summary>
        public decimal? InvoiceAmountHasTax { get; set; }

        /// <summary>
        /// 原发票金额(未税)
        /// </summary>
        public decimal? InvoiceAmountNoTax { get; set; }

        /// <summary>
        /// 原发票税额
        /// </summary>
        public decimal? InvoiceTax { get; set; }


        /// <summary>
        /// 发票类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 申请说明（是否已抵扣）
        /// </summary>
        public string ApplicationReason { get; set; }

        /// <summary>
        /// 成品油操作类型
        /// </summary>
        public string OilMemo { get; set; }


        /// <summary>
        /// 红冲金额(含税)
        /// </summary>
        public decimal CreditMemoAmountHasTax { get; set; }

        /// <summary>
        /// 红冲金额(未税)
        /// </summary>
        public decimal CreditMemoAmountNoTax { get; set; }

        /// <summary>
        /// SAP单据 / 退货订单号
        /// </summary>
        public string SapReceipt { get; set; }

        /// <summary>
        /// 票易通购方红字信息表返回结果
        /// </summary>
        public string PYTReturnResult { get; set; }

        /// <summary>
        /// 成功/失败详情
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// sap入账凭证
        /// </summary>
        public string SAPEntryVoucher { get; set; }
        
        /// <summary>
        /// 红字发票号码
        /// </summary>
        public string RedInvoiceNumber { get; set; }

        /// <summary>
        /// 红字发票代码
        /// </summary>
        public string RedInvoiceCode { get; set; }

        /// <summary>
        /// 红字发票日期
        /// </summary>
        public DateTime? RedInvoiceDate { get; set; }

        /// <summary>
        /// 红字发票运单号
        /// </summary>
        public string RedInvoiceTrackNumber { get; set; }

        /// <summary>
        /// 下发红字信息接口对应字段
        /// </summary>
        public string ApplySerialNo { get; set; }

        /// <summary>
        /// 票易通返回的taskId
        /// </summary>
        public string PYTReturnTaskId { get; set; }


        /// <summary>
        /// 费控编码
        /// </summary>
        public string FinanceVoucherNo { get; set; }

        /*/// <summary>
        /// 子行数据
        /// </summary>
       
        [SugarColumn(IsIgnore = true)]
        public List<BuyerScarletInformationFormDetailChild> InnerLineData { get; set; }*/
    }
}